<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="common/include :: header('修改员工')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-salary-edit" th:object="${salary}">
			<input id="salaryId" name="salaryId" type="hidden" th:field="*{id}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">员工名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="name" id="name" th:field="*{name}" disabled required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">基础工资：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="basicSalary" id="basicSalary"  th:field="*{basicSalary}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">绩效工资：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="meritSalary" id="meritSalary" th:field="*{meritSalary}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">扣款：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="deductMoney" id="deductMoney" th:field="*{deductMoney}"  required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">发放方式：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="paySource" id="paySource" th:field="*{paySource}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">发放时间：</label>
				<div class="col-sm-8">
					<div class="input-group date">
						<input name="date" class="form-control" placeholder="yyyy-MM-dd HH:mm" type="text">
						<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">备注：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="info" id="info" th:field="*{info}" >
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="common/include :: footer" />
	<th:block th:include="common/include :: datetimepicker" />
	<script type="text/javascript">
		var prefix = ctx + "/business/salary";

		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/edit", $('#form-salary-edit').serialize());
	        }
	    }
		$("input[name='date']").datetimepicker({
			format: "yyyy-mm-dd hh:ii",
			autoclose: true
		});
	</script>
</body>
</html>
